package com.dawn.module.mp.controller.admin.msgtemplatelog.vo;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.dawn.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.dawn.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 模板消息记录分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class MsgTemplateLogPageReqVO extends PageParam {

    @Schema(description = "appid", example = "19607")
    private String appid;

    @Schema(description = "accountId", example = "1")
    private String accountId;

    @Schema(description = "用户openid")
    private String touser;

    @Schema(description = "templateid", example = "24944")
    private String templateId;

    @Schema(description = "消息数据")
    private JSONArray data;

    @Schema(description = "消息链接", example = "https://www.ynzykj.net")
    private String url;

    @Schema(description = "小程序信息")
    private JSONObject miniprogram;

    @Schema(description = "发送时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] sendTime;

    @Schema(description = "发送结果")
    private String sendResult;

    @Schema(description = "发送状态", example = "2")
    private Boolean status;

    @Schema(description = "模板消息")
    private String message;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
